/* ***** BEGIN LICENSE BLOCK *****
 *  This file is part of StalkerFox.
 *  StalkerFox is free software: you can redistribute it and/or modify 
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *  
 *  StalkerFox is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with StalkerFox.  If not, see <http://www.gnu.org/licenses/>.
 * ***** END LICENSE BLOCK ***** */

// StalkerFox by Martin Obiols Herrera <olemoudi@gmail.com>




function StalkTarget(targetid) {
	this.init(targetid)
}

StalkTarget.prototype = {
	init: function(name) {
		this._targetid = name;
	},
	getTargetID : function() {
		return this._targetid;
	},
	addDataSource: function(datasource) {
	},
	removeDataSource: function(datasource) {
	},
	addDataOutput : function(dataoutput) {
	},
	removeDataOutput : function(dataoutput) {
	},
	// private class attributes
	_dataSources : null,
	_dataOutputs : null,
	_targetid : "",
	_stalk : false
}



/*
function StalkTask(StalkTarget) {
	this.init(StalkTarget);
	};

StalkTask.prototype = {
	init : function(stalktarget) {
		this._stalktarget = stalktarget;
	},
	notify: function() {
		try {
	
	      // This is where the working thread does its processing work.
	      
	      for (var i = 0; i<= this.number; i++) {
	        this.result += i;
	      }
	      
	      // When it's done, call back to the main thread to let it know
	      // we're finished.
	      
	      main.dispatch(new mainThread(this.threadID, this.result),
	        background.DISPATCH_NORMAL);
	    } catch(err) {
	      Components.utils.reportError(err);
	    }
	},
	// private attributes
	_stalktarget : null,
	_stalk : true,
	_stalkinterval = 0 //seconds
};
*/